package com.osi.mes.utils;

import com.datasweep.compatibility.client.Response;
import com.datasweep.compatibility.client.Server;
import com.datasweep.compatibility.pnuts.Functions;

public class ReponseUtils {
	public static Response createErrorResponse(Functions functions,Throwable e){
		Response r = new Response();
		Server server = functions.getCurrentUser().getServer();
		com.datasweep.compatibility.client.Error error = new com.datasweep.compatibility.client.Error(e,server);
		r.addError(error);
		return r;
	}
}
